package com.lzx.lizhenxing.delivery.controller;

import com.lzx.lizhenxing.common.vo.CommonResult;
import com.lzx.lizhenxing.delivery.vo.AmtAndBillNoVo;
import com.lzx.lizhenxing.delivery.vo.DeliveryPersonInfoVo;
import com.lzx.lizhenxing.sys.service.UserService;
import com.lzx.lizhenxing.user.service.UserOrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/deliveryPerson")
public class DeliveryPersonController {

    @Resource
    private UserService userService;

    @Resource
    private UserOrderService userOrderService;

    @GetMapping("/getDeliveryPersonInfo")
    public CommonResult getDeliveryPersonInfo(){
        List<DeliveryPersonInfoVo> resultList = userService.getDeliveryPersonInfo();
        return CommonResult.success(resultList);
    }

}

